// /*
//  * @Author: WanYiMing
//  * @Date:2024-07-05-13:50
//  * @Description:
//  */

using UnityEngine;

namespace Code.GameLogic.XianJian.Element
{
    public abstract class AbsJianQiAction
    {
        protected JianQiActionData JianQiActionData;

        public void InitAction(JianQiActionData jianQiActionData)
        {
            JianQiActionData = jianQiActionData;
        }
        public abstract void ActionStart();

        public abstract bool ActionHolding();

        public abstract void ActionExit();
        
        
    }
    
    public class JianQiActionData
    {
        public GameObject Target;
        public GameObject JianQi;
        public float Speed;
        public Rigidbody2D Rigidbody2D;
        public double ActiveTime;
        public JianQiActionData(GameObject target, GameObject jianQi, float speed)
        {
            Target = target;
            JianQi = jianQi;
            Speed = speed;
            Rigidbody2D = jianQi.GetComponent<Rigidbody2D>();
            ActiveTime = 0;
        }
        
        
    }
}